/**
 * 
 */
package com.zhaoyan.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author zhaoyan
 *
 * 2020年2月10日
 */
public class Order implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3070928164749255039L;	
	private Integer id;//	数据库id
	private String order_no;//	订单编号08159
	private String order_sn;//	交易号05361	
	private Integer member_id;//	客户编号00003
	private Integer supplier_id;//	商户编号01
	private String supplier_name;//	商户名称北极绒 羽绒服2
	private Integer order_status;//	订单状态1
	private Integer after_status;//	用户售后状态0
	private Integer product_count;//	商品数量4
	private BigDecimal product_amount_total;//	商品总价13
	private BigDecimal order_amount_total;//	实际付款金额608
	private BigDecimal logistics_fee;//	运费金额322
	private String address_id;//	收货地址编码bei001北极绒 羽绒服2
	private Integer pay_channel;//	支付渠道2
	private String out_trade_no;//	订单支付编号0014
	private String escrow_trade_no;//	第三方支付流水号0109
	@DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
	private Date pay_time;//	付款时间2019-12-12 12:37:08
	@DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
	private Date delivery_time;//	发货时间2019-12-12 12:37:08
	private Integer order_settlement_status;//	订单结算状态1
	@DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
	private Date order_settlement_time;//	订单结算时间2019-12-12 12:37:08
	private String is_package;//	是否是套餐1
	private String is_integral;//	是否是积分产品1
	private String telphone;//	电话号码13614262991
	@DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
	private Date updated_at;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
	private Date deleted_at;
	
	private Integer deleted_status;
	public Integer getDeleted_status() {
		return deleted_status;
	}
	public void setDeleted_status(Integer deleted_status) {
		this.deleted_status = deleted_status;
	}
	@Override
	public String toString() {
		return "Order [id=" + id + ", order_no=" + order_no + ", order_sn=" + order_sn + ", member_id=" + member_id
				+ ", supplier_id=" + supplier_id + ", supplier_name=" + supplier_name + ", order_status=" + order_status
				+ ", after_status=" + after_status + ", product_count=" + product_count + ", product_amount_total="
				+ product_amount_total + ", order_amount_total=" + order_amount_total + ", logistics_fee="
				+ logistics_fee + ", address_id=" + address_id + ", pay_channel=" + pay_channel + ", out_trade_no="
				+ out_trade_no + ", escrow_trade_no=" + escrow_trade_no + ", pay_time=" + pay_time + ", delivery_time="
				+ delivery_time + ", order_settlement_status=" + order_settlement_status + ", order_settlement_time="
				+ order_settlement_time + ", is_package=" + is_package + ", is_integral=" + is_integral + ", telphone="
				+ telphone + ", updated_at=" + updated_at + ", deleted_at=" + deleted_at + "]";
	}
	/**
	 * @param id
	 * @param order_no
	 * @param order_sn
	 * @param member_id
	 * @param supplier_id
	 * @param supplier_name
	 * @param order_status
	 * @param after_status
	 * @param product_count
	 * @param product_amount_total
	 * @param order_amount_total
	 * @param logistics_fee
	 * @param address_id
	 * @param pay_channel
	 * @param out_trade_no
	 * @param escrow_trade_no
	 * @param pay_time
	 * @param delivery_time
	 * @param order_settlement_status
	 * @param order_settlement_time
	 * @param is_package
	 * @param is_integral
	 * @param telphone
	 * @param updated_at
	 * @param deleted_at
	 */
	public Order(Integer id, String order_no, String order_sn, Integer member_id, Integer supplier_id,
			String supplier_name, Integer order_status, Integer after_status, Integer product_count,
			BigDecimal product_amount_total, BigDecimal order_amount_total, BigDecimal logistics_fee, String address_id,
			Integer pay_channel, String out_trade_no, String escrow_trade_no, Date pay_time, Date delivery_time,
			Integer order_settlement_status, Date order_settlement_time, String is_package, String is_integral,
			String telphone, Date updated_at, Date deleted_at) {
		super();
		this.id = id;
		this.order_no = order_no;
		this.order_sn = order_sn;
		this.member_id = member_id;
		this.supplier_id = supplier_id;
		this.supplier_name = supplier_name;
		this.order_status = order_status;
		this.after_status = after_status;
		this.product_count = product_count;
		this.product_amount_total = product_amount_total;
		this.order_amount_total = order_amount_total;
		this.logistics_fee = logistics_fee;
		this.address_id = address_id;
		this.pay_channel = pay_channel;
		this.out_trade_no = out_trade_no;
		this.escrow_trade_no = escrow_trade_no;
		this.pay_time = pay_time;
		this.delivery_time = delivery_time;
		this.order_settlement_status = order_settlement_status;
		this.order_settlement_time = order_settlement_time;
		this.is_package = is_package;
		this.is_integral = is_integral;
		this.telphone = telphone;
		this.updated_at = updated_at;
		this.deleted_at = deleted_at;
	}
	/**
	 * 
	 */
	public Order() {
		super();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getOrder_no() {
		return order_no;
	}
	public void setOrder_no(String order_no) {
		this.order_no = order_no;
	}
	public String getOrder_sn() {
		return order_sn;
	}
	public void setOrder_sn(String order_sn) {
		this.order_sn = order_sn;
	}
	public Integer getMember_id() {
		return member_id;
	}
	public void setMember_id(Integer member_id) {
		this.member_id = member_id;
	}
	public Integer getSupplier_id() {
		return supplier_id;
	}
	public void setSupplier_id(Integer supplier_id) {
		this.supplier_id = supplier_id;
	}
	public String getSupplier_name() {
		return supplier_name;
	}
	public void setSupplier_name(String supplier_name) {
		this.supplier_name = supplier_name;
	}
	public Integer getOrder_status() {
		return order_status;
	}
	public void setOrder_status(Integer order_status) {
		this.order_status = order_status;
	}
	public Integer getAfter_status() {
		return after_status;
	}
	public void setAfter_status(Integer after_status) {
		this.after_status = after_status;
	}
	public Integer getProduct_count() {
		return product_count;
	}
	public void setProduct_count(Integer product_count) {
		this.product_count = product_count;
	}
	public BigDecimal getProduct_amount_total() {
		return product_amount_total;
	}
	public void setProduct_amount_total(BigDecimal product_amount_total) {
		this.product_amount_total = product_amount_total;
	}
	public BigDecimal getOrder_amount_total() {
		return order_amount_total;
	}
	public void setOrder_amount_total(BigDecimal order_amount_total) {
		this.order_amount_total = order_amount_total;
	}
	public BigDecimal getLogistics_fee() {
		return logistics_fee;
	}
	public void setLogistics_fee(BigDecimal logistics_fee) {
		this.logistics_fee = logistics_fee;
	}
	public String getAddress_id() {
		return address_id;
	}
	public void setAddress_id(String address_id) {
		this.address_id = address_id;
	}
	public Integer getPay_channel() {
		return pay_channel;
	}
	public void setPay_channel(Integer pay_channel) {
		this.pay_channel = pay_channel;
	}
	public String getOut_trade_no() {
		return out_trade_no;
	}
	public void setOut_trade_no(String out_trade_no) {
		this.out_trade_no = out_trade_no;
	}
	public String getEscrow_trade_no() {
		return escrow_trade_no;
	}
	public void setEscrow_trade_no(String escrow_trade_no) {
		this.escrow_trade_no = escrow_trade_no;
	}
	public Date getPay_time() {
		return pay_time;
	}
	public void setPay_time(Date pay_time) {
		this.pay_time = pay_time;
	}
	public Date getDelivery_time() {
		return delivery_time;
	}
	public void setDelivery_time(Date delivery_time) {
		this.delivery_time = delivery_time;
	}
	public Integer getOrder_settlement_status() {
		return order_settlement_status;
	}
	public void setOrder_settlement_status(Integer order_settlement_status) {
		this.order_settlement_status = order_settlement_status;
	}
	public Date getOrder_settlement_time() {
		return order_settlement_time;
	}
	public void setOrder_settlement_time(Date order_settlement_time) {
		this.order_settlement_time = order_settlement_time;
	}
	public String getIs_package() {
		return is_package;
	}
	public void setIs_package(String split) {
		this.is_package = split;
	}
	public String getIs_integral() {
		return is_integral;
	}
	public void setIs_integral(String is_integral) {
		this.is_integral = is_integral;
	}
	public String getTelphone() {
		return telphone;
	}
	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}
	public Date getUpdated_at() {
		return updated_at;
	}
	public void setUpdated_at(Date updated_at) {
		this.updated_at = updated_at;
	}
	public Date getDeleted_at() {
		return deleted_at;
	}
	public void setDeleted_at(Date deleted_at) {
		this.deleted_at = deleted_at;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((address_id == null) ? 0 : address_id.hashCode());
		result = prime * result + ((after_status == null) ? 0 : after_status.hashCode());
		result = prime * result + ((deleted_at == null) ? 0 : deleted_at.hashCode());
		result = prime * result + ((delivery_time == null) ? 0 : delivery_time.hashCode());
		result = prime * result + ((escrow_trade_no == null) ? 0 : escrow_trade_no.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((is_integral == null) ? 0 : is_integral.hashCode());
		result = prime * result + ((is_package == null) ? 0 : is_package.hashCode());
		result = prime * result + ((logistics_fee == null) ? 0 : logistics_fee.hashCode());
		result = prime * result + ((member_id == null) ? 0 : member_id.hashCode());
		result = prime * result + ((order_amount_total == null) ? 0 : order_amount_total.hashCode());
		result = prime * result + ((order_no == null) ? 0 : order_no.hashCode());
		result = prime * result + ((order_settlement_status == null) ? 0 : order_settlement_status.hashCode());
		result = prime * result + ((order_settlement_time == null) ? 0 : order_settlement_time.hashCode());
		result = prime * result + ((order_sn == null) ? 0 : order_sn.hashCode());
		result = prime * result + ((order_status == null) ? 0 : order_status.hashCode());
		result = prime * result + ((out_trade_no == null) ? 0 : out_trade_no.hashCode());
		result = prime * result + ((pay_channel == null) ? 0 : pay_channel.hashCode());
		result = prime * result + ((pay_time == null) ? 0 : pay_time.hashCode());
		result = prime * result + ((product_amount_total == null) ? 0 : product_amount_total.hashCode());
		result = prime * result + ((product_count == null) ? 0 : product_count.hashCode());
		result = prime * result + ((supplier_id == null) ? 0 : supplier_id.hashCode());
		result = prime * result + ((supplier_name == null) ? 0 : supplier_name.hashCode());
		result = prime * result + ((telphone == null) ? 0 : telphone.hashCode());
		result = prime * result + ((updated_at == null) ? 0 : updated_at.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Order other = (Order) obj;
		if (address_id == null) {
			if (other.address_id != null)
				return false;
		} else if (!address_id.equals(other.address_id))
			return false;
		if (after_status == null) {
			if (other.after_status != null)
				return false;
		} else if (!after_status.equals(other.after_status))
			return false;
		if (deleted_at == null) {
			if (other.deleted_at != null)
				return false;
		} else if (!deleted_at.equals(other.deleted_at))
			return false;
		if (delivery_time == null) {
			if (other.delivery_time != null)
				return false;
		} else if (!delivery_time.equals(other.delivery_time))
			return false;
		if (escrow_trade_no == null) {
			if (other.escrow_trade_no != null)
				return false;
		} else if (!escrow_trade_no.equals(other.escrow_trade_no))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (is_integral == null) {
			if (other.is_integral != null)
				return false;
		} else if (!is_integral.equals(other.is_integral))
			return false;
		if (is_package == null) {
			if (other.is_package != null)
				return false;
		} else if (!is_package.equals(other.is_package))
			return false;
		if (logistics_fee == null) {
			if (other.logistics_fee != null)
				return false;
		} else if (!logistics_fee.equals(other.logistics_fee))
			return false;
		if (member_id == null) {
			if (other.member_id != null)
				return false;
		} else if (!member_id.equals(other.member_id))
			return false;
		if (order_amount_total == null) {
			if (other.order_amount_total != null)
				return false;
		} else if (!order_amount_total.equals(other.order_amount_total))
			return false;
		if (order_no == null) {
			if (other.order_no != null)
				return false;
		} else if (!order_no.equals(other.order_no))
			return false;
		if (order_settlement_status == null) {
			if (other.order_settlement_status != null)
				return false;
		} else if (!order_settlement_status.equals(other.order_settlement_status))
			return false;
		if (order_settlement_time == null) {
			if (other.order_settlement_time != null)
				return false;
		} else if (!order_settlement_time.equals(other.order_settlement_time))
			return false;
		if (order_sn == null) {
			if (other.order_sn != null)
				return false;
		} else if (!order_sn.equals(other.order_sn))
			return false;
		if (order_status == null) {
			if (other.order_status != null)
				return false;
		} else if (!order_status.equals(other.order_status))
			return false;
		if (out_trade_no == null) {
			if (other.out_trade_no != null)
				return false;
		} else if (!out_trade_no.equals(other.out_trade_no))
			return false;
		if (pay_channel == null) {
			if (other.pay_channel != null)
				return false;
		} else if (!pay_channel.equals(other.pay_channel))
			return false;
		if (pay_time == null) {
			if (other.pay_time != null)
				return false;
		} else if (!pay_time.equals(other.pay_time))
			return false;
		if (product_amount_total == null) {
			if (other.product_amount_total != null)
				return false;
		} else if (!product_amount_total.equals(other.product_amount_total))
			return false;
		if (product_count == null) {
			if (other.product_count != null)
				return false;
		} else if (!product_count.equals(other.product_count))
			return false;
		if (supplier_id == null) {
			if (other.supplier_id != null)
				return false;
		} else if (!supplier_id.equals(other.supplier_id))
			return false;
		if (supplier_name == null) {
			if (other.supplier_name != null)
				return false;
		} else if (!supplier_name.equals(other.supplier_name))
			return false;
		if (telphone == null) {
			if (other.telphone != null)
				return false;
		} else if (!telphone.equals(other.telphone))
			return false;
		if (updated_at == null) {
			if (other.updated_at != null)
				return false;
		} else if (!updated_at.equals(other.updated_at))
			return false;
		return true;
	}
	
	
	
	

}
